export const asyncRoutes = [
  // 工单管理
  {
    path: '/task',
    component: () => import('@/layout'),
    children: [
      {
        path: '',
        name: 'tasks',
        component: () => import('@/views/Task'),
        meta: { title: '工单管理', icon: 'gongdan' },
        children: [
          {
            path: 'business',
            name: 'businesses',
            component: () => import('@/views/Task/components/business'),
            meta: { title: '运营工单' }
          },
          {
            path: 'operation',
            name: 'operations',
            component: () => import('@/views/Task/components/operation'),
            meta: { title: '运维工单' }
          }
        ]
      }
    ]
  },
  // 点位管理
  {
    path: '/node',
    component: () => import('@/layout'),
    children: [
      {
        path: '',
        name: 'nodes',
        component: () => import('@/views/Node'),
        meta: { title: '点位管理', icon: '定位' },
        children: [
          {
            path: 'region',
            name: 'regions',
            component: () => import('@/views/Node/components/region'),
            meta: { title: '区域管理' }
          },
          {
            path: 'node',
            name: 'nodess',
            component: () => import('@/views/Node/components/node'),
            meta: { title: '点位管理' }
          },
          {
            path: 'partner',
            name: 'partners',
            component: () => import('@/views/Node/components/partner'),
            meta: { title: '合作商管理' }
          }
        ]
      }
    ]
  },
  // 设备管理
  {
    path: '/vm',
    component: () => import('@/layout'),
    children: [
      {
        path: '',
        name: 'vms',
        component: () => import('@/views/VM'),
        meta: { title: '设备管理', icon: 'shebei' },
        children: [
          {
            path: 'index',
            name: 'indexs',
            component: () => import('@/views/VM/components/index'),
            meta: { title: '设备管理' }
          },
          {
            path: 'status',
            name: 'status',
            component: () => import('@/views/VM/components/status'),
            meta: { title: '设备状态' }
          },
          {
            path: 'type',
            name: 'types',
            component: () => import('@/views/VM/components/type'),
            meta: { title: '设备类型管理' }
          }
        ]
      }
    ]
  },
  // 人员管理
  {
    path: '/user',
    component: () => import('@/layout'),
    children: [
      {
        path: '',
        name: 'users',
        component: () => import('@/views/User'),
        meta: { title: '人员管理', icon: 'renyuan' },
        children: [
          {
            path: 'index',
            name: 'index',
            component: () => import('@/views/User/components/index'),
            meta: { title: '人员列表' }
          },
          {
            path: 'user-task-stats',
            name: 'stats',
            component: () => import('@/views/User/components/user-task-stats'),
            meta: { title: '人效统计' }
          },
          {
            path: 'user-work',
            name: 'work',
            component: () => import('@/views/User/components/user-work'),
            meta: { title: '工作量列表' }
          }
        ]
      }
    ]
  },
  // 商品管理
  {
    path: '/sku',
    component: () => import('@/layout'),
    children: [
      {
        path: '',
        name: 'skus',
        component: () => import('@/views/Sku'),
        meta: { title: '商品管理', icon: 'shang' },
        children: [
          {
            path: 'sku-class',
            name: 'class',
            component: () => import('@/views/Sku/components/sku-class'),
            meta: { title: '商品类型' }
          },
          {
            path: 'sku',
            name: 'sku',
            component: () => import('@/views/Sku/components/sku'),
            meta: { title: '人效统计' }
          }
        ]
      }
    ]
  },
  // 策略管理
  {
    path: '/policy',
    component: () => import('@/layout'),
    children: [
      {
        path: 'index',
        name: 'policys',
        component: () => import('@/views/Policy'),
        meta: { title: '策略管理', icon: 'celue' }
      }
    ]
  },
  // 订单管理
  {
    path: '/order',
    component: () => import('@/layout'),
    children: [
      {
        path: 'index',
        name: 'orders',
        component: () => import('@/views/Order'),
        meta: { title: '订单管理', icon: 'dingdan' }
      }
    ]
  },
  // 对账统计
  {
    path: '/report',
    component: () => import('@/layout'),
    children: [
      {
        path: 'index',
        name: 'reports',
        component: () => import('@/views/Report'),
        meta: { title: '对账统计', icon: 'zhang' }
      }
    ]
  }
]
